const { defineConfig } = require("@vue/cli-service");

module.exports = defineConfig({
  transpileDependencies: true,
  css: {
    loaderOptions: {
      postcss: {
        postcssOptions: {
          plugins: [
            [
              "postcss-pxtorem",
              {
                // 1rem等于多少px
                rootValue: 3.75,
                unitPrecision: 5,
                propList: ["*"],
                selectorBlackList: [],
                replace: true,
                mediaQuery: false,
                minPixelValue: 0,
                exclude: /node_modules/i,
              },
            ],
          ],
        },
      },
    },
  },
});
